# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=py3-audioread
_pkgname=audioread
pkgver=2.1.9
pkgrel=2
pkgdesc="Multi-library, cross-platform audio decoding"
url="https://github.com/sampsyo/audioread"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
options="!check"  # upstream provides no testsuite
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-audioread" # Backwards compatibility
provides="py-audioread=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="ad2260b6931cfeebb815d48221366a2a5d8095965ff18e94c5eb0809d9a1b02e650a62ad5e895b7f1e003771fa3babf56f59ce4538aca78b678566fd28327290  audioread-2.1.9.tar.gz"
